<?php

if (!session_id()) {
    session_start();
}
if (!isset($_SESSION['user_info'])) {
    echo "<script>alert('非法登录！当前未检测到用户登录信息！请登录后操作！');location='user_login.html';</script>";
    exit;
}
?>